﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ABCNet.NetPoints
{

    [AutoMapFrom(typeof(NetPoint))]
    public class NetPointDto : AuditedEntityDto
    {
        /// <summary>
        /// 客户Id
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 登陆账号
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 客户姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 根节点Id
        /// </summary>
        public int RootId { get; set; }
        
        /// <summary>
        /// 网组类型
        /// </summary>
        public NetTypes NetType { get; set; }

        /// <summary>
        /// 点位来源类型
        /// </summary>
        public PointTypes PointType { get; set; }

        public int PL1 { get; set; }

        public int PL2 { get; set; }

        public int PL3 { get; set; }

        public int PL4 { get; set; }

        public int PL5 { get; set; }

        /// <summary>
        /// 关系路径
        /// </summary>
        public string TreePath { get; set; }

        /// <summary>
        /// 层数
        /// </summary>
        public int Layer { get; set; }

        /// <summary>
        /// 锁定余额
        /// </summary>
        public decimal LockedBalance { get; set; }

        /// <summary>
        /// 子节点个数
        /// </summary>
        public int NodeCount { get; set; }

        public List<NetPointDto> Children { get; set; } = new List<NetPointDto>();

        public bool IsLeaf { get; set; }

    }
    

}
